const env = process.env.NODE_ENV
module.exports = {
    configureWebpack: config => {
        config.resolve = {
           extensions: ['.js', '.vue', '.json',".css"],
            alias: {
              'vue$': 'vue/dist/vue.esm.js'
            }
        }
    },
    devServer: {
        // overlay: {
        //     warnings: true,
        //     errors: true
        // },
        proxy: {
            '/users': {
                target: 'https://api.github.com/'
            }
        }
    },
    baseUrl: env === 'production' ? './' : '/',
    // lintOnSave: false
}
